package com.kwok.cloud.student.application;

import com.kwok.cloud.student.application.config.LoadBalanceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
//2.在调用方的主启动类启用Feign客户端扫描调用方的OpenFeign远程调用接口
@EnableFeignClients(basePackages = "com.kwok.**.openfeign")
//指定对哪个微服务启动何种负载均衡算法
//@LoadBalancerClients({
//        @LoadBalancerClient(value = "class-server", configuration = LoadBalanceConfig.class)
//})
public class StudentApplication {

    public static void main(String[] args) {
        SpringApplication.run(StudentApplication.class, args);
    }

}
